while True:
  try:
    def pra():
            list_str = input('Please add your list seperated by space：')
            list1 = list_str.split()
            list2 =[int(num) for num in list1]
            return list2
    result = pra()
    maxi = max(result)
    mini = min(result)
    average = sum(result) / len(result)
    average1 = f"{average:.2f}"
    print(maxi,mini,average1)
    break
  except ValueError:
    print(input('Please try again:'))
               